/*******************************************************************************
 * @file    bsp.c
 * @brief   The common board support library for all kinds of platform
 *
 * @version 1.0.0
 *******************************************************************************
 * @license Refer License or other description Docs
 * @author  Felix
 ******************************************************************************/
#include "bsp.h"

void BSP_DelayMsWithDog(uint32_t dly_ms)
{
    uint32_t sec = dly_ms/1000U;
    if(sec > 0){
        for(uint32_t i = 0U; i < sec; i++){
            os_idle();
            os_delay(1000U);
        }
        os_delay(dly_ms % 1000U);
    } else {
        os_delay(dly_ms);
    }
}
